﻿@model SecsaMvcApplication.Models.Medico

@{
    ViewBag.Title = "Edição de Cadastro";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<section>
    <div class="page-header">
        <h1>Médicos</h1>
        <div>
            @Html.ActionLink("Voltar para Lista", "Index")
        </div>
    </div>
<div class="row-fluid m-fluid">
    <div class="span12 m-widget">
        <div class="m-widget-body">
			@using (Html.BeginForm()) {
				@Html.ValidationSummary(true)

				<fieldset>
					<legend>Edição de Cadastro</legend>

							<div class="editor-label">
								@Html.LabelFor(model => model.DataNascimento)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.DataNascimento)
								@Html.ValidationMessageFor(model => model.DataNascimento)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.Crm)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Crm)
								@Html.ValidationMessageFor(model => model.Crm)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.UfCrm)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.UfCrm)
								@Html.ValidationMessageFor(model => model.UfCrm)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.Cns)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Cns)
								@Html.ValidationMessageFor(model => model.Cns)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.Telefone)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Telefone)
								@Html.ValidationMessageFor(model => model.Telefone)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.Sexo)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Sexo)
								@Html.ValidationMessageFor(model => model.Sexo)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.Logradouro)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Logradouro)
								@Html.ValidationMessageFor(model => model.Logradouro)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.Bairro)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Bairro)
								@Html.ValidationMessageFor(model => model.Bairro)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.Complemento)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Complemento)
								@Html.ValidationMessageFor(model => model.Complemento)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.Cidade)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Cidade)
								@Html.ValidationMessageFor(model => model.Cidade)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.Uf)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Uf)
								@Html.ValidationMessageFor(model => model.Uf)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.Cep)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Cep)
								@Html.ValidationMessageFor(model => model.Cep)
							</div>

							@Html.HiddenFor(model => model.Id)

							<div class="editor-label">
								@Html.LabelFor(model => model.Nome)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Nome)
								@Html.ValidationMessageFor(model => model.Nome)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.Cpf)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Cpf)
								@Html.ValidationMessageFor(model => model.Cpf)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.Email)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Email)
								@Html.ValidationMessageFor(model => model.Email)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.NomeUsuario)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.NomeUsuario)
								@Html.ValidationMessageFor(model => model.NomeUsuario)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.Senha)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Senha)
								@Html.ValidationMessageFor(model => model.Senha)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.DataUltimoLogin)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.DataUltimoLogin)
								@Html.ValidationMessageFor(model => model.DataUltimoLogin)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.FalhasLogin)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.FalhasLogin)
								@Html.ValidationMessageFor(model => model.FalhasLogin)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.DataUltimaFalhaLogin)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.DataUltimaFalhaLogin)
								@Html.ValidationMessageFor(model => model.DataUltimaFalhaLogin)
							</div>

							<div class="editor-label">
								@Html.LabelFor(model => model.Bloqueado)
					        </div>
							<div class="editor-field">
					            @Html.EditorFor(model => model.Bloqueado)
								@Html.ValidationMessageFor(model => model.Bloqueado)
							</div>

					<div class="form-actions">
						<button type="submit" class="btn btn-success">Concluir</button>
						@Html.ActionLink("Cancelar", "Index", new { }, new { @class = "btn" })
					</div>
				</fieldset>
			}
			</div>
		</div>
	</div>
</section>
